package com.chen.controller;

import com.chen.service.SystemService;
import com.chen.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:chenao
 * @DATE:2022/3/5 14:35
 */

@RestController
@RequestMapping("system")
public class SystemController {

    @Autowired
    SystemService systemService;

    @GetMapping("swiper")
    public Result listSwiper(){
        return systemService.listSwiper();
    }

    @GetMapping("album/list")
    public Result listAlbum(){
        return systemService.listAlbum();
    }
}
